﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<NETMovie.UI.WebMVC.Models.MovieArticleModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	MovieAdd
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Edit Movie Article</h2>

    <p>
        Use the form below to edit movie article
    </p>

    <% using (Html.BeginForm()) { %>

        <%: Html.ValidationSummary(true, "Movie article creation was unsuccessful. Please correct the errors and try again.") %>
        <div>
            <fieldset>
      
                <legend>Edit Movie Article</legend>
                <table>
                <tr>
                <td>
                <div class="editor-label">
                  <%: Html.HiddenFor(m => m.MovieId)%>
               <%: Html.LabelFor(m => m.Title)%>
                </div>
                </td>
                <td>
                 
                <div class="editor-field">
                    <%: Html.TextBoxFor(m => m.Title)%>
                    <%: Html.ValidationMessageFor(m => m.Title)%>
                </div>
                </td>
                </tr>
                <tr>
                <td>
                 <div class="editor-label">
                       <%: Html.LabelFor(m => m.ArticleURL) %>
                           <%: Html.TextBoxFor(m => m.ArticleURL)%>
                                <%: Html.ValidationMessageFor(m => m.ArticleURL)%>
                </div>
                </td>
                <td>
                <div class="editor-field">
                        <%: Html.LabelFor(m => m.SourceName) %>
                           <%: Html.TextBoxFor(m => m.SourceName)%>
                                <%: Html.ValidationMessageFor(m => m.SourceName)%>
                </div>
                </td>
                </tr>
                <tr>
                <td>
                <div class="editor-label">
                          <%: Html.LabelFor(m => m.SourceURL) %>
                           <%: Html.TextBoxFor(m => m.SourceURL)%>
                                <%: Html.ValidationMessageFor(m => m.SourceURL)%>
                </div>
                </td>
                </tr>
                <tr>
                <td>
                <p>
                    <input type="submit" value="Save Article" />
                </p>
                </td>
                 </tr>
                </table>
            </fieldset>
        </div>
    <% } %>
</asp:Content>